package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留级信息对象 sys_school_repeater
 * 
 * @author 杨皓焜
 * @date 2021-02-01
 */
public class SysSchoolRepeater extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 留级信息id */
    private Long id;

    /** 留级学员id */
    @Excel(name = "留级学员id")
    private Long studentId;

    /** 留级时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "留级时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repeaterDate;

    /** 原班级 */
    @Excel(name = "原班级")
    private String oldClass;

    /** 现班级 */
    @Excel(name = "现班级")
    private String newClass;

    /** 留级原因 */
    @Excel(name = "留级原因")
    private String cause;

    private SysSchoolStudent student;

    public SysSchoolStudent getStudent() {
        return student;
    }

    public void setStudent(SysSchoolStudent student) {
        this.student = student;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }
    public void setRepeaterDate(Date repeaterDate) 
    {
        this.repeaterDate = repeaterDate;
    }

    public Date getRepeaterDate() 
    {
        return repeaterDate;
    }
    public void setOldClass(String oldClass) 
    {
        this.oldClass = oldClass;
    }

    public String getOldClass() 
    {
        return oldClass;
    }
    public void setNewClass(String newClass) 
    {
        this.newClass = newClass;
    }

    public String getNewClass() 
    {
        return newClass;
    }
    public void setCause(String cause) 
    {
        this.cause = cause;
    }

    public String getCause() 
    {
        return cause;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("repeaterDate", getRepeaterDate())
            .append("oldClass", getOldClass())
            .append("newClass", getNewClass())
            .append("cause", getCause())
            .toString();
    }
}
